<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <style>
        /* 超小屏幕（小于等于575px） */
        @media screen and (max-width: 575px) {
            html {
                font-size: 14px;
            }
        }
        /* 大屏幕（大于等于992px） */
        @media screen and (min-width: 992px) {
            html {
                font-size: 18px;
            }
        }
        .cardBorder {
            border: none;
            border-radius: 20px;
        }
        .cardBorder:hover {
            border: 1px solid rgb(240, 93, 8);
        }
        .card-img-top {
            border-radius: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-lg-3 col-md-4 col-sm-6 my-4" th:each="goods :${goodslist}">
                <div class="card cardBorder">
                    <img class="card-img-top" th:src="@{${goods.image}}" alt="Card image">
                    <div class="card-body">
                        <h4 class="card-title my-2"><img src="images/1.avif" height="20">
                            <span th:text="${goods.name}"></span>
                        </h4>
                        <div class="card-text d-flex justify-content-between my-2">
                            <span class="text-danger" th:text="${goods.unitPrice}"></span>
                            <span>广东广州</span>
                        </div>
                        <div class="my-2">
                            <a href="#" class="btn btn-outline-warning text-danger disabled"
                                style="width: 65px;height: 20px;font-size: 12px;padding: 0;">赠运费险</a>
                            <a href="#" class="btn btn-outline-warning text-danger disabled btn-sm">包邮</a>
                        </div>
                        <div class="text-muted my-2"><img src="images/logo.avif" height="20"><span th:text="${goods.memo}"></span></div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</body>

</html>